<?php
session_start();
if(!isset($_SESSION['Name'])||!isset($_SESSION['objem'])){
header('Location: index.php');
}

if(isset($_GET['dvere'])&&isset($_GET['barva'])){
$_SESSION['barva'] = $_GET['barva'];
$_SESSION['dvere'] = $_GET['dvere'];
header('Location: step4.php');}
include("Design.php");
include("DB.php");

Tops("Počet dveří a barva");



?>
<form action="step3.php">
		Počet dveří </br>
		<input type="radio" name="dvere" value="1"><?php echo GetDvereFromId(1);?><br>
		<input type="radio" name="dvere" value="2"><?php echo GetDvereFromId(2);?><br>
		Barva </br>
		
		<input type="radio" name="barva" value="1"><?php echo GetColorFromId(1);?><br>
		<input type="radio" name="barva" value="2"><?php echo GetColorFromId(2);?><br>
		<input type="radio" name="barva" value="3"><?php echo GetColorFromId(3);?><br>
	<input type="submit" value="Dalsi">
</form>
<?
if((!isset($_GET['barva'])||(!isset($_GET['dvere'])))&&isset($_GET['next'])){
echo "vyberte hodnotu";}
Bottom();
?>